package com.example.demo.user.dao;

import com.example.demo.user.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    //插入用户
    int insertUser(User user);
    //删除用户
    int deleteUser(int id);
    //更新用户
    int updateUser(User user);
    //查询全部用户
    List<User> selectAllUser();
}
